﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Model.Entities;

namespace Model.Mappings
{
    public partial class HRDS_POWER_SWITCH_LOG_Map : ClassMap<HRDS_POWER_SWITCH_LOG>
    {
        public HRDS_POWER_SWITCH_LOG_Map()
        {
            Table("HRDS_POWER_SWITCH_LOG");
            Id(x => x.GUID)
                .Length(36);

            Map(x => x.TIMESTAMP).Nullable();
            Map(x => x.STATIONNAME).Nullable().Length(100);
            Map(x => x.MFID).Nullable().Length(14);
            Map(x => x.OPERATIONTYPE).Nullable().Length(10);
            Map(x => x.APPNAME).Not.Nullable().Length(40);
            Map(x => x.OPERATIONWAY).Not.Nullable().Length(40);
            DoEditableMappings();
        }
    }
}
